package com.ygou.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ygou.mapper.UserRanksMapper;
import com.ygou.mapper.UsersMapper;
import com.ygou.pojo.UserRanks;
import com.ygou.pojo.UserRanksExample;
import com.ygou.pojo.UsersExample;
import com.ygou.pojo.UserRanksExample.Criteria;
import com.ygou.service.UserRanksService;

@Service
public class UserRankServiceImpl implements UserRanksService {
	@Autowired
	UserRanksMapper userRanksMapper;
	@Autowired
	UsersMapper usersMapper;

	// 根据条件查询
	@Override
	public List<UserRanks> selectByExample(UserRanksExample example) {
		return userRanksMapper.selectByExample(example);
	}

	// 根据等级分组查询
	@Override
	public List<UserRanks> selectRanksGroup() {
		return userRanksMapper.selectRanksGroup();
	}

}
